package com.swjd.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;

import com.swjd.pojo.Home;

public interface HomeMapper {
    
    @Select("select * from home")
    public List<Home> allHome();
    
	@SelectProvider(type = SQLProvider.class ,method = "select")
    public List<Home> sell(@Param("rname")String rname);
	
	@SelectProvider(type = SQLProvider.class ,method = "selcon")
	public List<Home> selcon(@Param("pricestart")String pricestart,@Param("priceend")String priceend);

}
